package local.blueheart.data.springdatademo.exception;

public enum DominoExceptionEnum {
    GET_SESSION_ERR("4000", "创建Session出错"), GET_DB_ERR("4001", "创建数据库连接出错"), GET_VIEW_ERR("4002", "创建View出错"), GET_DOC_ERR("4003", "创建Document出错"), GET_ITEM_VAL_ERROR("4004", "获取Field值出错"), GET_UPD_DOC_ERR("4005", "更新Doc出错"),CREATE_ARCH_INDEX_DATA_ERR("4006","创建索引文档失败"),CREATE_DOC_COMPITE_ERR("4007","创建DocID失败"),CREATE_ARCH_DATA_ERR("4008","创建索引文档失败"),CREATE_URL_ERR("4010","创建语文档URL出错");

    private String errorCode;

    private String errorMessage;

    DominoExceptionEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
